import request from '@/utils/request'

export function fetchManufacturerList(data) {
  return request({
    url: '/cloud-system/getManufacturerList',
    method: 'post',
    data
  })
}

export function fetchManufacturerOne(data) {
  return request({
    url: '/cloud-system/getOneManufacturerDetail',
    method: 'post',
    data
  })
}

export function createManufacturer(data) {
  return request({
    url: '/cloud-system/createOneManufacturer',
    method: 'post',
    data
  })
}

export function updateManufacturer(data) {
  return request({
    url: '/cloud-system/updateOneManufacturer',
    method: 'post',
    data
  })
}

export function deleteManufacturer(data) {
  return request({
    url: '/cloud-system/deleteOneManufacturer',
    method: 'post',
    data
  })
}

export function lockManufacturer(data) {
  return request({
    url: '/cloud-system/lockOneManufacturer',
    method: 'post',
    data
  })
}

export function unlockManufacturer(data) {
  return request({
    url: '/cloud-system/unlockOneManufacturer',
    method: 'post',
    data
  })
}

export function batchLockManufacturer(data) {
  return request({
    url: '/cloud-system/batchLockManufacturer',
    method: 'post',
    data
  })
}

export function batchUnLockManufacturer(data) {
  return request({
    url: '/cloud-system/batchUnLockManufacturer',
    method: 'post',
    data
  })
}

export function batchDeleteManufacturer(data) {
  return request({
    url: '/cloud-system/batchDeleteManufacturer',
    method: 'post',
    data
  })
}
